<template>
  <FixedMenu menuClass="floatNav" menuRight="-93">
    <div class="floatNav">
      <div class="budget-detail" @click="toProject">
        <span class="iconfont icon-reportReserve"></span>
        <a-badge :offset="[-11, -15]">
          <p>合同报工列表</p>
        </a-badge>
      </div>
      <div class="budget-detail" @click="toMyTask">
        <span class="iconfont icon-reportReserve"></span>
        <a-badge :offset="[-11, -15]">
          <p>我的报工单</p>
        </a-badge>
      </div>
      <div class="budget-detail" @click="toPayment">
        <span class="iconfont icon-reportReserve"></span>
        <a-badge :offset="[-11, -15]">
          <p>验收付款单</p>
        </a-badge>
      </div>
      <div class="budget-detail" @click="toQuality">
        <span class="iconfont icon-reportReserve"></span>
        <a-badge :offset="[-11, -15]">
          <p>质量通知单</p>
        </a-badge>
      </div>
      <div class="budget-detail" @click="toInfrastructure">
        <span class="iconfont icon-reportReserve"></span>
        <a-badge :offset="[-11, -15]">
          <p>基建管理单</p>
        </a-badge>
      </div>
    </div>
  </FixedMenu>
</template>
<script>
export default {
  /////////////////////////
  components: {
    FixedMenu: () => import('@/components/tools/FixedMenu'),
  },
  methods: {
    toProject() {
        this.windowOpen('/workReport/projectList')
    },
    toMyTask() {
        this.windowOpen('/workReport/myTaskList')
    },
    toProjectAttach(id) {
        this.windowOpen('/workReport/attach/' + id)
    },
    toPayment() {
      this.windowOpen('/workReport/paymentList')
    },
    toQuality() {
        this.windowOpen('/workReport/qualityList')
    },
    toInfrastructure() {
        this.windowOpen('/infrastructure/list')
    },
  },
}
</script>

<style lang="less" scoped>
@import '~@assets/less/hte-main.less';
.page-main {
  .banner {
    background-image: url(~@assets/contract-top.png);
  }
  .container {
    section {
      padding: 0;
      margin: 12px 0;
      background-color: #ffffff;
      border: solid 1px #e2e2e2;
      .list-head {
        background-color: #d9dee8;
        font-size: 14px;
        color: #333;
        font-weight: bold;
        padding: 7px 18px;
        overflow: hidden;
        display: flex;
        align-items: center;
        > i {
          padding: 5px 7px;
          font-size: 12px;
          color: #fff;
          background-color: #b3b3b3;
          border-radius: 2px;
          margin-left: 18px;
          &.i-status0 {
            background-color: @bg-color-btn;
          }
          &.i-status1 {
            background-color: #3eb177;
          }
          &.i-status2 {
            background-color: #2d2b91;
          }
          &.i-status3 {
            background-color: @bg-color-btn;
          }
        }
        > span {
          padding-left: 15px;
          &:nth-of-type(2) {
            flex: 1;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
          }
          &:last-child {
            float: right;
            span {
              font-weight: initial;
              color: #333;
              padding-left: 25px;
              font-weight: bold;
              i {
                color: #666;
                font-weight: inherit;
              }
            }
          }
        }
      }
      .list-content {
        background-color: #fff;
        padding: 15px 18px 15px 50px;
        font-size: 14px;
        color: #666666;
        > div {
          display: flex;
          &.flex-num1-box {
            > div {
              &:nth-child(1),
              &:nth-child(2) {
                width: 17%;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                margin-right: 1%;
                padding-right: 5px;
              }
              &:nth-child(1) {
                width: 28%;
                position: relative;
                &:after {
                  &:extend(.afterbg);
                }
              }
              &:nth-child(3) {
                width: 54%;
                display: flex;
                justify-content: flex-end;
                > span {
                  margin-left: 20px;
                }
              }
            }
          }
          &.flex-num2-box {
            margin-top: 15px;
            div:first-child {
              flex: 2;
              > span {
                margin-right: 42px;
              }
            }
          }
          .flex-end {
            justify-content: flex-end;
            display: flex;
            > span {
              margin-left: 18px;
              cursor: pointer;
              i {
                color: #77b9f1;
                margin-right: 2px;
              }
            }
          }
        }
      }
    }
    /deep/ .ant-checkbox-group {
      width: 100%;
      display: initial;
    }
    /deep/ .ant-col .ant-checkbox {
      padding: 0 19px;
    }
  }
  .icon-file {
    background-image: url('~@assets/file.png');
  }
  /deep/ .ant-btn > .anticon + span {
    margin-left: 3px;
  }
}
.font-active {
  cursor: pointer;
}

.iconfont-png {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  margin-top: -3px;
  margin-right: 3px;
  background-repeat: no-repeat;
}
@media (max-width: 1170px) {
  .page-main .container section .list-content > div.flex-num1-box {
    flex-wrap: wrap;
    > div {
      &:nth-child(1),
      &:nth-child(2) {
        width: 48%;
      }
      &:nth-child(3) {
        width: 100%;
        justify-content: flex-start;
        > span {
          margin-right: 20px;
          margin-left: 0;
        }
      }
    }
  }
  .page-main .container section .list-content > div.flex-num2-box {
    display: block;
    margin-top: 0;
  }
}
/deep/ .html2canvas-container {
  z-index: 1 !important;
}
</style>
<style lang="less">
// .el-loading-mask {
//     z-index: 1 !important;
//     display:none !important;
//   }
// .el-loading-mask{
//   z-index: 1 !important;
//   display:none !important;
// }
.el-message {
  top: 150px !important;
}
</style>
